var swiper = new Swiper('.banner', {
	      slidesPerView: 4,
		  spaceBetween: 0,
		  slidesPerGroup: 4,
	      direction: getDirection(),
	      navigation: {
	        nextEl: '.swiper-button-next',
	        prevEl: '.swiper-button-prev',
	      },
	      on: {
	        resize: function () {
	          swiper.changeDirection(getDirection());
	        }
	      }
	    });
		function getDirection() {
		  var windowWidth = window.innerWidth;
		  var direction = window.innerWidth <= 760 ? 'vertical' : 'horizontal';
			
		  return direction;
		}